import random
import string
import uuid

def random_uuid_string():
    return str(uuid.uuid4().hex)


def generate_random_string(length):
    # 可用字符集
    characters = string.ascii_letters + string.digits
    # 生成随机字符串
    random_string = ''.join(random.choice(characters) for _ in range(length))
    return str(random_string)


def get_random_xlsx_name() -> str:
    return 'tmpfile_%s.xlsx' % random_uuid_string()
